
# 费用明细相关视图
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from LogisticsCard.models import FeeDetail


@login_required
def fee_detail_list_view(request):
    """
    费用明细列表视图，展示当前用户的所有费用明细。
    :param request: HttpRequest对象
    :return: 渲染费用明细列表页面
    """
    fees = FeeDetail.objects.filter(user=request.user).order_by('-created_at')
    return render(request, 'fee/index.html', {'fees': fees})
